CREATE TABLE [dbo].[TCAMAR_CCOB]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[NU_AMAR] [dbo].[TD_VC_008] NOT NULL,
[CO_UNID_CONC] [dbo].[TD_VC_003] NOT NULL,
[CO_TIPO_OPER] [dbo].[TD_VC_003] NULL,
[CO_CLIE] [dbo].[TD_VC_020] NULL,
[FE_AMAR] [dbo].[TD_DT_001] NULL,
[CO_MONE] [dbo].[TD_VC_003] NULL,
[FA_TIPO_CAMB] [dbo].[TD_NU_015_006] NULL,
[ST_CONT] [dbo].[TD_VC_001_INTE] NOT NULL CONSTRAINT [DF__TCAMAR_CC__ST_CO__0CBAE877] DEFAULT ('N'),
[NU_PROC] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TCAMAR_CC__NU_PR__0EA330E9] DEFAULT ((0)),
[TI_SITU] [dbo].[TD_VC_003] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCAMAR_CC__CO_US__0F975522] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCAMAR_CC__FE_US__108B795B] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCAMAR_CC__CO_US__117F9D94] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCAMAR_CC__FE_US__1273C1CD] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCAMAR_CCOB] WITH NOCHECK ADD CONSTRAINT [CK__TCAMAR_CC__ST_CO__0DAF0CB0] CHECK NOT FOR REPLICATION (([ST_CONT]='P' OR [ST_CONT]='N'))
GO
ALTER TABLE [dbo].[TCAMAR_CCOB] ADD CONSTRAINT [PK__TCAMAR_C__EE49AE72560A9D62] PRIMARY KEY CLUSTERED  ([CO_EMPR], [NU_AMAR]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCAMAR_CCOB] ADD CONSTRAINT [FK__TCAMAR_CC__CO_EM__69C77D4C] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
